<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/1
 * Time: 16:49
 */

namespace app\admin\model;


use think\Db;
use think\Model;

/**
 * 作者相关方法model
 */
class Author extends Model
{
    /**
     * 获取作者信息
     */
    public function getAuthorInfo(){
        $info = Db::name('author')->find();
        return $info;
    }
}